import { request } from '../utils/request'

// 获取投诉类型
export const getSuggestType = () => {
  return request({
    url: '/Alipay/ComplaintSuggest/getSuggestType',
    method: 'GET'
  })
}
// 提交投诉建议
export const submitComplaintSuggest = (data) => {
  return request({
    url: '/Alipay/ComplaintSuggest/submitComplaintSuggest',
    method: 'POST',
    data
  })
}
// 根据类型获取投诉建议
export const getSuggest = (type) => {
  return request({
    url: '/Alipay/ComplaintSuggest/getSuggest',
    method: 'POST',
    data: { type }
  })
}
// 撤销
export const cancel = (suggest_id) => {
  return request({
    url: '/Alipay/ComplaintSuggest/cancel',
    method: 'POST',
    data: { suggest_id }
  })
}
// 未解决
export const unresolved = (data) => {
  return request({
    url: '/Alipay/ComplaintSuggest/unresolved',
    method: 'POST',
    data
  })
}
// 已解决
export const resolved = (suggest_id) => {
  return request({
    url: '/Alipay/ComplaintSuggest/resolved',
    method: 'POST',
    data: { suggest_id }
  })
}
// 查看进度
export const lookProgress = (suggest_id) => {
  return request({
    url: '/Alipay/ComplaintSuggest/lookProgress',
    method: 'GET',
    data: { suggest_id }
  })
}
// 投诉超时定时任务
export const overtime = () => {
  return request({
    url: '/Alipay/ComplaintSuggest/overtime',
    method: 'GET'
  })
}



